A. Stack
B. Maps
C. Queue
D. Array
Advertisement
Related Mcqs:
- All collection classes are available in _________________?
- A. java.util package B. java.io package C. java.lang package D. java.awt package...
- A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?
- A. Declare the method with the keyword public. B. Declare the method with the keyword private. C. Do not declare the method with any accessibility modifiers. D. Declare the method with the keyword public and private....
- Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ?
- A. An object of B contains data fields j, k, m B. An object of B contains data fields k, m C. An object of B contains data fields j, m D. An object of B contains data fields i, j, k, m...
- Which collection class associates values witch keys, and orders the keys according to their natural order ?
- A. java.util.LinkedList B. java.util.TreeMap C. java.util.SortedSet D. java.util.HashSet...
- A package is a collection of__________________?
- A. Classes and Interfaces B. Classes C. Editing tools D. Editing tools and Interfaces...
- Which of the following automatic type conversion will be possible ?
- A. byte to int B. short to int C. long to int D. int to long...
- Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct ?
- A. From within protected methods you do not have access to public methods. B. This method is only accessible from inside the class itself and from inside all subclasses. C. In a class, you cannot declare methods with a lower visibility than the visibility of the class in which it is defined. D. This method...
- The following fraction of code double STATIC = 2.5 ; System.out.println( STATIC ); ?
- A. Prints 2.5 B. Raises an exception C. Raises an error as STATIC is used as a variable which is a keyword D. None of these...
- What will the output of the following program? public class Test{ public static void main(String args[]){float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); } } ?
- A. 0 B. 1 C. 2 D. 3...
- Which of the following below are valid isolation levels in J2EE ?
- A. TRANSACTION_READ_UNCOMMITTED B. TRANSACTION_SERIALIZABLE C. Only A D. Both A and B...
Advertisement